Class ZipMainPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----com.sun.java.swing.JPanel
                                   |
                                   +----ZipMainPanel

public class ZipMainPanel
extends JPanel
This class construct the main frame of the visual interface. It gives the link between the graphic interface, and the file Archive.

Version:
1.0
Author:
Frank Moisant - Patrick Titiano
See Also:
ZipToolsBar, Zip, AllActionListener, ZipTable

Variable Index

 o allActionListener
 o data
 o name
 o nbFiles
 o scrollPane
 o toolsBar
 o zipAccess
 o zipTable

Constructor Index

 o ZipMainPanel(AllActionListener, Zip)
Constructor of the class

Method Index

 o changeVectorOfDataVector(Vector)
This Method change the content of the table attached at zipTable and activate the refresh of the zipTable, and the status bar
 o enabledToolsAction(boolean)
This method is use to activate an desactivate the Edition and Action buttons
 o getSelectedFiles()
This methods return the selected files in the zipTable
 o selectAll()
This method select all rows in the zipTable
 o selectNone()
This method deselect rows in the zipTable

Variables

 o zipTable
 private ZipTable zipTable
 o data
 private Vector data
 o name
 private Vector name
 o scrollPane
 private JScrollPane scrollPane
 o toolsBar
 private ZipToolsBar toolsBar
 o zipAccess
 private Zip zipAccess
 o allActionListener
 private AllActionListener allActionListener
 o nbFiles
 private JLabel nbFiles

Constructors

 o ZipMainPanel
 public ZipMainPanel(AllActionListener allActionListener,
                     Zip zipAccess)
Constructor of the class

Parameters:
allActionListener - accessor to the general action dispatcher
zipAccess - accessor to the zipArchive, use for the popup menu

Methods

 o enabledToolsAction
 public void enabledToolsAction(boolean flag)
This method is use to activate an desactivate the Edition and Action buttons

Parameters:
flag - true if you want to enable it
 o getSelectedFiles
 public Vector getSelectedFiles()
This methods return the selected files in the zipTable

Returns:
a Vector of rows, the rows are Vector
 o changeVectorOfDataVector
 public void changeVectorOfDataVector(Vector newVector)
This Method change the content of the table attached at zipTable and activate the refresh of the zipTable, and the status bar

Parameters:
newVector - the new vector
 o selectAll
 public void selectAll()
This method select all rows in the zipTable

 o selectNone
 public void selectNone()
This method deselect rows in the zipTable